package com.mryan.ps_register.configure;

import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @BelongsProject: ps_cloud
 * @BelongsPackage: com.mryan.ps_register.configure
 * @Author: Yan
 * @CreateTime: 2021-04-23 20:49
 * @Description: 开启Eureka服务端端点保护
 */
@EnableWebSecurity
public class PSRegisterWebSecurityConfigure extends WebSecurityConfigurerAdapter {

	@Override
	protected void configure(HttpSecurity http) throws Exception {
		http.csrf().ignoringAntMatchers("/eureka/**");
		super.configure(http);
	}
}
